package com.app.dao.maintain;

import com.app.entity.AppInfo;
import com.app.entity.AppVersion;
import com.app.entity.DataDictionary;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Controller;

import java.util.List;
@Controller
public interface MaintainMapper {

    /*显示全部信息*/

    List<AppInfo> show_all(@Param("softwareName") String querySoftwarename,
                           @Param("status") Integer queryStatus,
                           @Param("categoryLevel1") Integer queryCategoryLevel1,
                           @Param("categoryLevel2") Integer queryCategoryLevel2,
                           @Param("categoryLevel3") Integer queryCategoryLevel3,
                           @Param("platformId") Integer queryPlatFormId,
                           @Param("currentPageNo") Integer currentPageNo,@Param("pageSize") Integer pageSize);
    /*显示总条目数*/
    int count(@Param("softwareName") String querySoftwarename,
              @Param("status") Integer queryStatus,
              @Param("categoryLevel1") Integer queryCategoryLevel1,
              @Param("categoryLevel2") Integer queryCategoryLevel2,
              @Param("categoryLevel3") Integer queryCategoryLevel3,
              @Param("platformId") Integer queryPlatFormId);
    /*查询App状态与所属平台*/
    List<DataDictionary> show_type(@Param("typeCode")String typeCode);
    AppInfo appInfoList(@Param("id") int id)throws Exception;
    List<AppInfo> appVersion(@Param("id") int id)throws Exception;
    AppVersion appVersion_SH(@Param("id") int id)throws Exception;
}
